package com.qifan.alb2b.service;


import org.springframework.stereotype.Service;

import com.qifan.alb2b.action.back.param.HotelQueryParam;
import com.qifan.alb2b.dao.CountryInfoDao;
import com.qifan.alb2b.dao.HotelInfoDao;
import com.qifan.alb2b.domain.HotelInfoDomain;
import com.qifan.alb2b.util.DataGridModel;
import com.qifan.alb2b.util.Page;

@Service
public class HotelInfoService {
	private HotelInfoDao hotelInfoDao;
	private CountryInfoDao countryInfoDao;

	public CountryInfoDao getCountryInfoDao() {
		return countryInfoDao;
	}

	public void setCountryInfoDao(CountryInfoDao countryInfoDao) {
		this.countryInfoDao = countryInfoDao;
	}

	public HotelInfoDao getHotelInfoDao() {
		return hotelInfoDao;
	}

	public void setHotelInfoDao(HotelInfoDao hotelInfoDao) {
		this.hotelInfoDao = hotelInfoDao;
	}
	
	public Page query(DataGridModel dgm,HotelQueryParam uqp){
		return hotelInfoDao.query(dgm,uqp);
	}
	
	public HotelInfoDomain getHotelById(String hotelId){
		return hotelInfoDao.getHotelById(hotelId);
	}
	
	
	
	
	public void add(HotelInfoDomain hotelInfoDomain){
		hotelInfoDao.add(hotelInfoDomain);
	}
	
	public void update(HotelInfoDomain hotelInfoDomain){
		hotelInfoDao.update(hotelInfoDomain);
	}
	
	public void delete(String[] ids){
		hotelInfoDao.delete(ids);
	}
}
